<!DOCTYPE html>
<html>
<head>
<title>代码生成器</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp">
	<div class="grid-btn">
		<div class="form-group">
			<input type="text" v-model="q.userName" @keyup.enter="query" placeholder="用户名">
			<input type="text" v-model="q.mobileNo" @keyup.enter="query" placeholder="手机号">
			状态
			<select v-model="q.statusCash" @keyup.enter="query">
				<option value="2" >正常</option>
				<option value="6" selected="selected">已退押金</option>
				<option value="7">退款失败</option>
				<option value="10">欠费</option>
				<option value="11">严重欠费</option>
				<option value="0">新注册</option>
			</select>
			<br/>
			<input type="date" v-model="q.registerStartTime" @keyup.enter="query">
			<input type="date" v-model="q.registerEndTime" @keyup.enter="query">注册时间<br/>
			<input type="text" v-model="q.shelfCode" @keyup.enter="query">书柜号
			<a class="btn btn-default"  @click="query">查询</a><br/>
			<!-- <a class="btn btn-default" href="http://127.0.0.1:9001/wdb-security/upDown/file/export-user-capital">导出</a> -->
			<a class="btn btn-default" href="https://api.wdb007.com/wdb-security/upDown/file/export-user-capital">导出</a>
		</div>
		
	</div>
	<button id="add_user" @click="addUser">添加用户</button>
    <table id="jqGrid"></table>
    <div id="jqGridPager"></div>
</div>

<script src="${request.contextPath}/statics/js/modules/client/client-manager.js?_${.now?long}"></script>
<script type="text/javascript">
	//修改用户信息
	function updateUserType(id){
		vm.updateUserType(id);
	}
	//修改用户信用分
	function updateCreditValue(id,userName,mobileNo,creditValue){
		vm.updateCreditValue(id,userName,mobileNo,creditValue);
	}
	//修改用户积分
	function updatePointValue(id,userName,mobileNo,pointValue) {
		vm.updatePointValue(id,userName,mobileNo,pointValue);
	}
	//添加用户
	function addUser(){
		vm.addUser();
	}
	//查看报修次数
	function getMaintainCount(id){
		vm.getMaintainCount(id);
	}
	//已经借阅图书
	function getAlreadyBorrowBooksHtml(id){
		vm.getAlreadyBorrowBooks(id);
	}
	//在借图书
	function getCurrentBorrowBooksHtml(id){
		vm.getCurrentBorrowBooks(id);
	}
	//积分流水
	function getPointValueHtml(id){
		vm.getPointValue(id);
	}
	//信用分流水
	function getCreditValueHtml(id){
		vm.getCreditValue(id);
	}
</script>
</body>
</html>